package com.elong.businesstravel.entitys;

import java.util.List;

/**
 * 火车票
 * 
 * @author lenovo
 * 
 */
public class TrainTicket {

	public String duration;// ": 1412,
	public From from;
	public String lowPrice;// ": "229",
	public String noTicketFlag;// ": 0,
	public String number;// ": "T10",
	public List<Seats> seats;
	public String ticketBookStatus;
	public String ticketYpCode;// ": 2,
	public String ticketYpName;// ": "票量充足",
	public To to;
	public String totalTicketNum;// ": 1000

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public From getFrom() {
		return from;
	}

	public void setFrom(From from) {
		this.from = from;
	}

	public String getLowPrice() {
		return lowPrice;
	}

	public void setLowPrice(String lowPrice) {
		this.lowPrice = lowPrice;
	}

	public String getNoTicketFlag() {
		return noTicketFlag;
	}

	public void setNoTicketFlag(String noTicketFlag) {
		this.noTicketFlag = noTicketFlag;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public List<Seats> getSeats() {
		return seats;
	}

	public void setSeats(List<Seats> seats) {
		this.seats = seats;
	}

	public String getTicketBookStatus() {
		return ticketBookStatus;
	}

	public void setTicketBookStatus(String ticketBookStatus) {
		this.ticketBookStatus = ticketBookStatus;
	}

	public String getTicketYpCode() {
		return ticketYpCode;
	}

	public void setTicketYpCode(String ticketYpCode) {
		this.ticketYpCode = ticketYpCode;
	}

	public String getTicketYpName() {
		return ticketYpName;
	}

	public void setTicketYpName(String ticketYpName) {
		this.ticketYpName = ticketYpName;
	}

	public To getTo() {
		return to;
	}

	public void setTo(To to) {
		this.to = to;
	}

	public String getTotalTicketNum() {
		return totalTicketNum;
	}

	public void setTotalTicketNum(String totalTicketNum) {
		this.totalTicketNum = totalTicketNum;
	}

	public static class From {
		public String first;// ": "1",
		public String name;// ": "重庆北",
		public String time;// ": "11:34"
		public String getFirst() {
			return first;
		}
		public void setFirst(String first) {
			this.first = first;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getTime() {
			return time;
		}
		public void setTime(String time) {
			this.time = time;
		}
		
	}

	public static class Seats {
		public String code;// ": "1",
		public String lowPrice;// ": "229",
		public String name;// ": "硬座",
		public String price;// ": "229",
		public String seatYpCode;// ": 2,
		public String seatYpName;// ": "票量充足",
		public String yp;// ": "1000"
		public String[] availablePassengerTypes;
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getLowPrice() {
			return lowPrice;
		}
		public void setLowPrice(String lowPrice) {
			this.lowPrice = lowPrice;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getPrice() {
			return price;
		}
		public void setPrice(String price) {
			this.price = price;
		}
		public String getSeatYpCode() {
			return seatYpCode;
		}
		public void setSeatYpCode(String seatYpCode) {
			this.seatYpCode = seatYpCode;
		}
		public String getSeatYpName() {
			return seatYpName;
		}
		public void setSeatYpName(String seatYpName) {
			this.seatYpName = seatYpName;
		}
		public String getYp() {
			return yp;
		}
		public void setYp(String yp) {
			this.yp = yp;
		}
		public String[] getAvailablePassengerTypes() {
			return availablePassengerTypes;
		}
		public void setAvailablePassengerTypes(String[] availablePassengerTypes) {
			this.availablePassengerTypes = availablePassengerTypes;
		}
		
	}

	public static class To {
		public String last;// ": "1",
		public String name;// ": "北京西",
		public String time;// ": "11:06"
		public String getLast() {
			return last;
		}
		public void setLast(String last) {
			this.last = last;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getTime() {
			return time;
		}
		public void setTime(String time) {
			this.time = time;
		}
		
	}

}
